<?php
include("../includes/conexion.php");
include("../includes/funciones.php");

$lista_tipo_usuariosEvento = lista_tipo_documentos("tipo_doc", "", "");
$lista_rrhh = lista_rrhh_reporte();
?>

<link rel="stylesheet" href="css/styls-win.css" type="text/css" />
<div id="mant_prestamos">
    <form name="formu" id="formu" method="post" onSubmit="return false;">
        <div  class="salto_fila" >Reporte Ingresos de Documentos por trabajador </div>
        <div class="fila_spacio"></div>

        <div class="fila_spacio"></div>

        <table width="100%" border="0" cellpadding="0" cellspacing="0"  id="datos_personales">

            <tr >
                <td >&nbsp;</td>
                <td>Trabajador</td>
                <td>:</td>
                <td colspan="2"><?php echo $lista_rrhh; ?></td>
            </tr>
            <tr >
                <td colspan="5" ><hr></td>
            </tr>
            <tr >
                <td width="4%" ><input type="radio" name="select" value="por_dia" text="por_dia"  /></td>
                <td width="24%">Por dia</td>
                <td width="2%">:</td>
                <td width="20%"><input type="text" size="8" name="fecha_dia" class="caja" id="fecha_dia" readonly="readonly" />
                    <input name="button"  type="button" id="btn_fecha1" onkeydown="posicionamiento(this, event, 'formu')" onclick="displayCalendar(document.formu.fecha_dia, 'dd/mm/yyyy', this)" class='calendar' />              </td>
                <td width="50%">&nbsp;</td>
            </tr>

            <tr >
                <td width="4%" ><input type="radio" name="select" value="por_semana" text="por_semana" /></td>
                <td width="24%">Por Semenas</td>
                <td width="2%">:</td>
                <td width="20%"><input type="text" size="8" name="fecha_desde" class="caja" id="fecha_desde" readonly="readonly" />
                    <input name="button2" class="calendar" type="button" id="button" onkeydown="posicionamiento(this, event, 'formu')" onclick="displayCalendar(document.formu.fecha_desde, 'dd/mm/yyyy', this)"/></td>
                <td width="50%"><input type="text" size="8" name="fecha_hasta" class="caja" id="fecha_hasta" readonly="readonly" />
                    <input name="button22" class="calendar" type="button" id="button2" onkeydown="posicionamiento(this, event, 'formu')" onclick="displayCalendar(document.formu.fecha_hasta, 'dd/mm/yyyy', this)"  /></td>
            </tr>			

            <tr >
                <td width="4%" ><input type="radio" name="select" value="por_mes"  text="por_mes" /></td>
                <td width="24%">Por Mes</td>
                <td width="2%">:</td>
                <td colspan="2"><select name="mes" id="mes" style="width:150px;">
                        <option value="1">Enero</option>
                        <option value="2">Febrero</option>
                        <option value="3">Marzo</option>
                        <option value="4">Abril</option>
                        <option value="5">Mayo</option>
                        <option value="6">Junio</option>
                        <option value="7">Julio</option>
                        <option value="8">Agosto</option>
                        <option value="9">Setiembre</option>
                        <option value="10">Octubre</option>
                        <option value="11">Noviembre</option>
                        <option value="12">Diciembre</option>									 									 									 									 									 									 									 									 									 									 									 
                    </select>              </td>
            </tr>			

            <tr >
                <td width="4%" ><input type="radio" name="select" value="por_ano" text="por_ano" /></td>
                <td width="24%">Por Año</td>
                <td width="2%">:</td>
                <td colspan="2"><select name="ano" id="ano" style="width:150px;">
                        <?php for ($i = 2009; $i <= 2015; $i++) { ?>
                            <option value="<?php echo $i; ?>"><?php echo $i; ?></option> 									 									
                        <?php } ?>									 
                    </select>              </td>
            </tr>				
            <tr >
                <td >&nbsp;</td>
                <td>&nbsp;</td>
                <td  >&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>	
            <tr >
                <td >&nbsp;</td>
                <td>&nbsp;</td>
                <td  >&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>								
        </table>




        <div class="fila_spacio"></div>
        <div class="fila_spacio"></div>		  

        <div class="salto_fila">
            <input type="button"  name="Guardar" id="Guardar" value="Imprimir" onClick="imprimir_ingreso_por_rrhh()" />
            <input type="button"  name="Salir" id="Salir" value="Salir" onClick="$('contenedorMantenimiento').innerHTML = '';"/>				
        </div>		  		  		  		   
        <input type="hidden" id="id_TIPOUS" name="id_TIPOUS" />	

    </form>		  
</div>	


